<?php

use Illuminate\Database\Migrations\Migration;

class CreateChitiethoidongTable extends Migration
{
    /**
    * Run the migrations.
    *
    * @return void
    */
    public function up()
    {
        Schema::create('chi_tiet_hoi_dong', function($table)
        {
            $table->engine='InnoDB';
            $table->increments('id')->unsigned();
            $table->integer('id_can_bo')->unsigned();
            $table->integer('id_hoi_dong')->unsigned();
            $table->string('mo_ta_vai_tro', 50);
            $table->text('ghi_chu')->nullable()->default(null);
        });
    }

    /**
    * reverse the migrations.
    *
    * @return void
    */
    public function down()
    {
        Schema::drop('chi_tiet_hoi_dong');
    }
}